/**
 * 
 */
package de.mbenning.fsim.web.controller.liga;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import de.mbenning.fsim.persistence.dao.interfaces.IMainDAO;

/**
 * @author Martin.Benning
 *
 */
@Controller("ligaEditController")
@RequestMapping("/liga/edit.htm")
public class LigaEditController {
	
	@Autowired
	@Qualifier("mainDAO") 
	private IMainDAO mainDAO;
	
	@RequestMapping(method = RequestMethod.GET)
	public String intForm(ModelMap model) {
		model.addAttribute("ligen", mainDAO.findAllLigen());
		return "ligaListView";
	}
	
}
